package com.newgrand.annexcommon.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {

    private static final SimpleDateFormat spDay = new SimpleDateFormat("yyyyMMdd");
    private static final SimpleDateFormat sp = new SimpleDateFormat("yyyy-MM-dd");

    /**
     * @return yyyyMMdd
     */
    public static String getDay() {
        return spDay.format(new Date());
    }

    /**
     * @return yyyy-MM-dd
     */
    public static String getToday() {
        return sp.format(new Date());
    }

}
